package gui.event;

/**
 *	@(#)AttachmentListener.java
 *
 *	The <code>AttachmentListener</code> interface is designed to
 *	receive attachment events when one draggable label is dropped
 *	onto another one and this drop is accepted by both of the
 *	labels.
 *
 *	@author Grzegorz Kobiela
 *	@version 1.0 2007/9/10
 */
public interface AttachmentListener
extends java.util.EventListener
{
	/**
	 *	Invoked when a draggable label was attached to another one.
	 *	@param event the attachment event
	 */
	public void componentAttached(AttachmentEvent event);

	/**
	 *	Invoked when a draggable label was detached from another one.
	 *	@param event the attachment event
	 */
	public void componentDetached(AttachmentEvent event);
}